import 'package:flutter_clx_base/flutter_clx_base.dart';
import 'package:flutter_clx_base_example/sample/list/list1/list1_logic.dart';

import 'detail_logic.dart';

class DetailPage extends StatelessWidget {
  DetailPage({Key? key}) : super(key: key);

  final logic = Get.put(DetailLogic());

  @override
  Widget build(BuildContext context) {
    return MyScaffold(
      title: "详情",
      children: [
        TextButton(
            onPressed: () {
              findOtherLogic<List1Logic>()?.controller.reload();
              findOtherLogic<List1Logic>()?.controller.reload();
              Get.back();
            },
            child: const Text("刷新列表1"))
      ],
    );
  }
}
